package BanyuanClub.Study.Day0304;

import java.io.*;
import java.util.Scanner;

public class TextConverter {
    public static <bw> void main(String[] args) {
        try(
        //字节输入流->字符输入流
                BufferedReader br = new BufferedReader(
                        new InputStreamReader(
                                new FileInputStream("src.txt")));
        //字节输出流->字符输出流
                BufferedWriter bw = new BufferedWriter(
                        new OutputStreamWriter(
                                new FileOutputStream("ds.txt")))
        ) {

        //scanner方法转化
            Scanner in = new Scanner(new FileReader("src.txt"));

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
